package org.example.service;

import org.example.dto.DepartmentDto;
import org.example.vo.DepartmentVo;

import java.util.List;

public interface DepartmentService {
    Integer addDepartment(DepartmentVo department);
    Integer updateDepartment(DepartmentVo department);
    Integer deleteDepartment(Integer departmentId);
    List<DepartmentDto> queryAllDepartment();
    Integer countDepartment();
    DepartmentDto queryDepartmentByName(String departmentName);
    DepartmentDto queryDepartmentById(Integer departmentId);
}
